
#ifndef  _TSET_IIC_H_
#define  _TSET_IIC_H_


//iic -MASTER
int dbg_test_iic_maseter( void * parg, int argc, const char * argv[] );
//iic -SLAVE
int dbg_test_iic_slave( void * parg, int argc, const char * argv[] );


 // IIC控制器初始化函数-主模式
int iic_init_master(uint32_t base_address,  uint32_t slave_address,uint32_t addr_mode,uint32_t speed_mode,uint32_t apb_freq,uint32_t baud_rate);



// IIC控制器初始化函数-从模式
int iic_init_slave(uint32_t base_address,  uint32_t slave_address,uint32_t addr_mode,uint32_t speed_mode,uint32_t apb_freq,uint32_t baud_rate);



#endif

